package post

import "context"

type Service interface {
	GetPostPage(ctx context.Context, cmd GetPostPageCommand) (data []Post, num int64, err error)
	Get(ctx context.Context, cmd GetPostCommand) (Post, error)
	Insert(ctx context.Context, cmd Post) error
	Update(ctx context.Context, cmd Post) error
	Remove(ctx context.Context, cmd RemovePostCommand) error
}
